package com.example.home.api

import com.example.home.mvvm.bean.HomeBean
import com.gsafety.libraryktx.base.RespBaseBean
import com.gsafety.libraryktx.config.Constant
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST
import retrofit2.http.QueryMap
import java.util.*


/**
 * @author : lj
 * @date : 2020/9/18 11:20
 */
interface ApiService {
    @GET("home")
    fun home(@QueryMap params: TreeMap<String, Any>): Call<RespBaseBean<HomeBean>>

    @GET("logout")
    fun loginOut(@Header(Constant.TOKEN) token:String): Call<Any>
}